<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery.min.js"></script>
</head>
<body>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <button>快速</button>
    <script>
        $(function(){
            //1.隐式迭代
            $('button').click(function(){
                // 1. 给所有的按钮都绑定了点击事件
                //2.当前元素变化背景元素
                $(this).css('background','pink');
                //3.其余兄弟去掉背景颜色 隐式迭代
                $(this).siblings('button').css('background','')

            })
        })
    </script>
</body>
</html>